﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using TransactionServer.General_Classes;

namespace TransactionServer.ActivityDesign
{
    /// <summary>
    /// Interaction logic for EditAttribute.xaml
    /// </summary>
    public partial class EditAttribute : Page
    {
        CAttribute item = null;

        public EditAttribute(ref CAttribute item)
        {
            this.item = item;
            InitializeComponent();
            textBox1.Text = item.name;
        }

        private void textBox1_TextChanged(object sender, TextChangedEventArgs e)
        {
            item.name = textBox1.Text;
        }
    }
}
